package ycl.system.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import ycl.base.entity.Area;
import ycl.common.ApiResult;
import ycl.common.config.NativeFeignConfig;
import ycl.system.feign.fallback.BaseFeignFallback;

/**
 * 基础服务模块
 *
 * @author ycl
 * @date 2022/6/26 0026 0:24:09
 */
@FeignClient(
		value = "ycl-base",
		fallback = BaseFeignFallback.class,
		configuration = NativeFeignConfig.class
)
public interface BaseFeign {

	@GetMapping("/area/getByCode")
	ApiResult<Area> getAreaByCode(@RequestParam("code") String code);
}
